import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import router from './router/index';


import microApp from '@micro-zoe/micro-app'

microApp.preFetch([
  { name: 'my-selint', url: 'http://192.168.2.151:3003', level: 3 }, // 加载资源、解析并渲染
])


microApp.router.beforeEach({
  'my-selint' (to, from) {
    console.log('指定子应用的前置守卫 beforeEach ', to, from)
  },
})

// 在start中增加配置
microApp.start({
  'disable-memory-router': true, // 关闭虚拟路由
  disableScopecss: true, // 关闭样式隔离
})


createApp(App).use(router).mount('#app')
